package cn.neusoft.mapper;

import cn.neusoft.domain.Commodity;
import cn.neusoft.domain.CommodityClass;
import cn.neusoft.query.BaseQuery;
import cn.neusoft.vo.PageBean;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;


public interface CommodityClassMapper {

    void add(CommodityClass c);

    void delete(Integer id);

    void update(CommodityClass c);

    List<CommodityClass> getAll();

    CommodityClass getById(Integer id);

    List<CommodityClass> getByName(String name);

    List<CommodityClass> getCommodityClassesByPage(int page, int pageSize);

    int getTotalCount();

    List<CommodityClass> findByPage(BaseQuery query);

    void deleteByFirstClass(String first_class);

    void deleteByFirstClassSecond(String first_class);



}
